var t = require;
var e = module;
var o = exports;
var i, n = this && this.__extends || (i = function(t, e) {
    return (i = Object.setPrototypeOf || {
        __proto__: []
    }
    instanceof Array &&
    function(t, e) {
        t.__proto__ = e
    } ||
    function(t, e) {
        for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o])
    })(t, e)
},
function(t, e) {
    function o() {
        this.constructor = t
    }
    i(t, e),
    t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o)
}),
a = this && this.__decorate ||
function(t, e, o, i) {
    var n, a = arguments.length,
    r = a < 3 ? e: null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, i);
    else for (var s = t.length - 1; s >= 0; s--)(n = t[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, o, r) : n(e, o)) || r);
    return a > 3 && r && Object.defineProperty(e, o, r),
    r
};
Object.defineProperty(o, "__esModule", {
    value: !0
});
var r = t("Hint"),
s = t("BroadCastMessage"),
l = t("Util"),
c = t("HallConstant"),
d = cc._decorator,
h = d.ccclass,
p = d.property,
u = function(t) {
    function e() {
        var e = null !== t && t.apply(this, arguments) || this;
        return e.pfb_signin = null,
        e.pfb_task = null,
        e.pfb_lottery = null,
        e.pfb_pokeStop = null,
        e.pfb_freebox = null,
        e.pfb_handBook = null,
        e.tip_signin = null,
        e.tip_task = null,
        e.tip_lottery = null,
        e.tip_pokeStop = null,
        e.tip_freeBox = null,
        e.tip_handBook = null,
        e._hallControl = null,
        e
    }
    return n(e, t),
    e.prototype.onLoad = function() {
        this.resetView()
    },
    e.prototype.initView = function(t) {
        this._hallControl = t
    },
    e.prototype.resetView = function() {
        this.tip_signin.active = !1,
        this.tip_task.active = !1,
        this.tip_lottery.active = !1,
        this.tip_pokeStop.active = !1,
        this.tip_freeBox.active = !1,
        this.tip_handBook.active = !1
    },
    e.prototype.onSetTipLabel = function() {},
    e.prototype.onBtnClose = function() {
        this.playAudio(c.Audio_ID.btn_click),
        this.node.destroy(),
        l.Util.showHallBanner()
    },
    e.prototype.onBtnSignin = function() {
        this.playAudio(c.Audio_ID.btn_click);
        var t = cc.instantiate(this.pfb_signin);
        this.node.parent.addChild(t, 99)
    },
    e.prototype.onBtnTask = function() {
        this.playAudio(c.Audio_ID.btn_click);
        var t = cc.instantiate(this.pfb_task);
        this.node.parent.addChild(t, 99)
    },
    e.prototype.onBtnLottery = function() {
        this.playAudio(c.Audio_ID.btn_click);
        var t = cc.instantiate(this.pfb_lottery);
        this.node.parent.addChild(t, 99)
    },
    e.prototype.onBtnPokeStop = function() {
        this.playAudio(c.Audio_ID.btn_click);
        var t = cc.instantiate(this.pfb_pokeStop);
        this.node.parent.addChild(t, 99)
    },
    e.prototype.onBtnFreeBox = function() {
        this.playAudio(c.Audio_ID.btn_click),
        r.default.show("敬请期待")
    },
    e.prototype.onBtnHandBook = function() {
        this.playAudio(c.Audio_ID.btn_click),
        r.default.show("敬请期待")
    },
    e.prototype.playAudio = function(t) {
        this._hallControl ? this._hallControl.playAudio(t) : s.default.getInstance().SendMessage(c.Broadcast_Func.Audio, t)
    },
    a([p(cc.Prefab)], e.prototype, "pfb_signin", void 0),
    a([p(cc.Prefab)], e.prototype, "pfb_task", void 0),
    a([p(cc.Prefab)], e.prototype, "pfb_lottery", void 0),
    a([p(cc.Prefab)], e.prototype, "pfb_pokeStop", void 0),
    a([p(cc.Prefab)], e.prototype, "pfb_freebox", void 0),
    a([p(cc.Prefab)], e.prototype, "pfb_handBook", void 0),
    a([p(cc.Node)], e.prototype, "tip_signin", void 0),
    a([p(cc.Node)], e.prototype, "tip_task", void 0),
    a([p(cc.Node)], e.prototype, "tip_lottery", void 0),
    a([p(cc.Node)], e.prototype, "tip_pokeStop", void 0),
    a([p(cc.Node)], e.prototype, "tip_freeBox", void 0),
    a([p(cc.Node)], e.prototype, "tip_handBook", void 0),
    a([h], e)
} (cc.Component);
o.default = u